/**
 @file phy_interface.c
 @copyright Copyright(C)  Centec Networks Inc.  All rights reserved.
 @date 2019-10-23
 @version v1.0
*/
#include "sal.h"
#include "phy_drv_def.h"
#include "phy_drv_common.h"
#include "phy_drv_api.h"

#ifdef SDK_PHY
extern uint8 g_ctcs_api_en;
/**
*@fn int32 ctc_phy_mdio_read(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
*@brief ctc_phy_mdio_read for mdio read
*@param[in] lchip_id asic chip id
*@param[in] type mdio bus type
*@param[in,out] p_para point to mdio access parameter
*/
int32 
ctc_phy_mdio_read(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
{
    return cal_phy_mdio_read(lchip_id, type, p_para);
}

/**
*@fn int32 ctc_phy_mdio_write(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
*@brief ctc_phy_mdio_write for mdio write
*@param[in] lchip_id asic chip id
*@param[in] type mdio bus type
*@param[in,out] p_para point to mdio access parameter
*/
int32 
ctc_phy_mdio_write(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
{
    return cal_phy_mdio_write(lchip_id, type, p_para);
}
#endif

#ifdef APP_PHY

/**
*@fn int32 ctc_phy_mdio_read(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
*@brief ctc_phy_mdio_read for mdio read
*@param[in] lchip_id asic chip id
*@param[in] type mdio bus type
*@param[in,out] p_para point to mdio access parameter
*/
int32 
ctc_phy_mdio_read(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
{
    /* add you code for mdio access */
    return 0;
}

/**
*@fn int32 ctc_phy_mdio_write(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
*@brief ctc_phy_mdio_write for mdio write
*@param[in] lchip_id asic chip id
*@param[in] type mdio bus type
*@param[in,out] p_para point to mdio access parameter
*/
int32 
ctc_phy_mdio_write(uint8 lchip_id, ctc_chip_mdio_type_t type, ctc_chip_mdio_para_t* p_para)
{
    /* add you code for mdio access */
    return 0;
}

#endif

